package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.dto.ExcelDictDTO;
import com.atguigu.srb.core.pojo.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author Luckyh
 * @since 2022-01-25
 */

public interface DictService extends IService<Dict> {

    void importData(InputStream inputStream);

    /**
     *  获取数据库中dict的数据，导出
     * @return
     */
    List<ExcelDictDTO> listDictData();

    List<Dict> listByParentId(long parentId);
}
